package com.maomao.node;

public abstract class Node {
    protected String name;
    public Node(String name) {
        this.name = name;
    }
    protected abstract void add(Node child);

    protected void ls(int space) {
        for (int i=0;i<space;i++) {
            System.out.print("  ");
        }
        System.out.println(name);
    }
    protected void ls() {
        this.ls(0);
    }
}
